package com.zhangjun.spring.entity.Impl;

import com.zhangjun.spring.entity.Student;
import com.zhangjun.spring.entity.Teacher;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

/**
 * @author 张钧
 * @Description
 * @create 2022-09-16 19:37
 */
@Service("teacher")
public class TeacherImpl implements Teacher {
    @Value("en")
    private String language;

    @Override
    public String teach(Student student) {
        return student.learn(language);
    }
}
